# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=adman
pkgver=0.9.0
pkgrel=2
pkgdesc="A tool for performing automated Active Directory management"
url="https://gitlab.com/JonathonReinhart/adman"
arch="noarch"
license="MIT"
depends="
	python3
	py3-ldap
	py3-dnspython
	py3-smbc
	py3-yaml
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="adman-$pkgver.tar.gz::https://gitlab.com/JonathonReinhart/adman/-/archive/v$pkgver/adman-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # fail with py3.11 (or other depends?)

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib pytest -vv --color=yes
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
52d741a27c1e6c5666fa9cb0136ac29ef9e5a3b042b611bc3a9b7ddf8d12c368d32761c52179020a69a1b0e5b30bff3101c01cc853629d70c5948e7d21967caf  adman-0.9.0.tar.gz
"
